<template name="Admin_pagination">
	<nav>
	<ul class="pagination">
		{{#if isLastCan}}
		<li><a href="{{pageNumber -1}}">&laquo;</a></li>
		{{/if}}

		{{#if isPageApostropheNumberFormerCan}}
		<li class="{{isActive 1 }}"><a href="1">1</a></li>
		<li class="{{isActive 2 }}"><a href="2">2</a></li>
		<li class="{{isActive 3 }}"><a href="3">3</a></li>
		<li><a href="{{pageApostropheNumberFormer}}">...</a></li>
		{{else}}
		<li class="{{isActive 1 }}"><a href="1">1</a></li>
		<li class="{{isActive 2 }}"><a href="2">2</a></li>
		<li class="{{isActive 3 }}"><a href="3">3</a></li>
		{{/if}}
		{{#if isPageNumberRangeFourToFive}}
		<li class="{{isActive 4 }}"><a href="4">4</a></li>
		<li class="{{isActive 5 }}"><a href="5">5</a></li>
		<li class="{{isActive 6 }}"><a href="6">6</a></li>
		<li class="{{isActive 7 }}"><a href="7">7</a></li>
		{{else}}
			{{#if isPageNumberGreaterSeven}}
				<li><a href="{{pageNumber -2}}">{{pageNumber -2}}</a></li>
				<li><a href="{{pageNumber -1}}">{{pageNumber -1}}</a></li>
				<li class="active"><a href="{{pageNumber}}">{{pageNumber}}</a></li>
				<li><a href="{{pageNumber 1}}">{{pageNumber 1}}</a></li>
				<li><a href="{{pageNumber 2}}">{{pageNumber 2}}</a></li>
			{{else}}
					<li class="{{isActive 4 }}"><a href="4">4</a></li>
					<li class="{{isActive 5 }}"><a href="5">5</a></li>
					<li class="{{isActive 6 }}"><a href="6">6</a></li>
					<li class="{{isActive 7 }}"><a href="7">7</a></li>
			{{/if}}

		{{/if}}
		<li><a href="{{pageNumber 21}}">...</a></li>
		<li><a href="{{pageNumber 43}}">{{pageNumber 43}}</a></li>
		<li><a href="{{pageNumber 44}}">{{pageNumber 44}}</a></li>
		<li><a href="{{pageNumber 45}}">{{pageNumber 45}}</a></li>
		<li><a href="{{pageNumber 1}}">&raquo;</a></li>
	</ul>
	</nav>
</template>